feat(gar): publish to Artifact Registry - #511
Draft
lucaghersi wants to merge 1 commit into
Draft
lucaghersi wants to merge 1 commit into
lucaghersi wants to merge 1 commit into
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
lucaghersi
force-pushed
the
setup-artifact-registry-action
branch
from
September 14, 2026 16:23
1f50c23 to
194d479
Compare
This was referenced Sep 14, 2026
lucaghersi
force-pushed
the
setup-artifact-registry-action
branch
3 times, most recently
from
September 14, 2026 16:51
6bb3ae6 to
96e65ab
Compare
Closed
5 tasks
Author
|
I have read the CLA Document and I hereby sign the CLA |
lucaghersi
force-pushed
the
setup-artifact-registry-action
branch
from
September 17, 2026 16:11
11facbc to
5c352af
Compare
Adds `actions/setup-artifact-registry`, which federates through the workload identity pool and configures Docker, npm and Maven from one step, and `.github/workflows/template_gitops_gar.yml`, which publishes images through it. A service calls the template and grants `id-token: write`; no registry credentials are passed. Images go to `images-publish`, deployments reference the `images` virtual repository in front of it, and that path is set in the GitOps repository once, by hand, so the template carries no GitOps file lists. `template_gitops.yml` is the Harbor equivalent and is untouched. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
lucaghersi
force-pushed
the
setup-artifact-registry-action
branch
from
September 17, 2026 16:14
5c352af to
e05cc88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Everything needed to publish to Google Artifact Registry:
actions/setup-artifact-registry— federates and configures Docker, npm and Maven in one step.github/workflows/template_gitops_gar.yml— the GitOps template, publishing through itA service migrates by switching its
uses:line and adding a permissions block. No registry credentials are passed.id-token: writehas to be on the calling job — a called workflow cannot raise the caller's permissions.Why it looks like this
A push is accepted only into
images-publish, while deployments referenceimages, the virtual repository in front of it. That path is set in mops once, by hand, and Flux image automation rolls the tag from there.So the template has no
gitops-dev/gitops-stage/gitops-prodinputs: they make the action rewrite the whole image reference on every build, which pins the deployment toimages-publish. Passing them fails withinvalid input. A service using the file lists moves to image automation first.With those gone, the released
gitops-github-action@v8.2.1is enough — no change and no release there.docker-registry-apiis passed explicitly: it is what the release retag talks to, and the action's default points at Harbor.Before merging
setup-artifact-registryreferences to the release tag.actionlintclean. Requires the WIF pool from Staffbase/infrastructure#17340, applied. First consumer: Staffbase/satan#1169. Guide: Staffbase/infrastructure#17349.🤖 Generated with Claude Code